﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyLib.MyBase.MyWeb;
using MyChocCuoi.Setting;
namespace MyLoad.LoadStatic
{
    public class LFaceBook:MyLoadWeb
    {
        public LFaceBook(MyASHX CurrentPage)
        {
            this.CurrentPage = CurrentPage;
            TemplatePath = "~/Templates/Static/FaceBook.html";
            Init();
        }      
        // Hàm trả về chuỗi có chứa mã HTML
        protected override string BuildHTML()
        {
            try
            {
                string HTML = LoadTemplate(TemplatePath); ;
                string IsLogined = "false";

                if(!WebSetting.MemberLogined.IsNull)
                {
                    IsLogined ="true";
                }
                HTML = HTML.Replace("{IsLogined}", IsLogined);
                return HTML;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
